Command Line Support

TestPath has command line support for advanced users. This mode can be used to set comparison parameters and also to start automatic comparing mode without the need for user interface actions.

Parameters are case insensitive (you can use either lower or upper case parameters). Parameters can be prefixed with either a slash (/) or a hyphen (-), but must be separated by a space. Do not combine two or more parameters together.
Correct: TestPath.exe /S /OT /OB
Incorrect: TestPath.exe /SOTOB
All options, except /S, are ignored if automatic comparing mode (/A) is not specified. In automatic comparing mode the options and paths that you set using the command line are only used for current comparing and will not be saved.


You can use following command line parameters:

/S

Do not show skin on the window backgrounds and buttons.
This parameter is added for compability reasons in case there is a problem to draw the background skin picture or to paint the buttons.
Example:
>TestPath.exe /S

/A

Start automatic comparing.
This parameter MUST be followed by two paths, the source path followed by the destination path. If any of these paths have spaces in them, you must enclose the path in double quotes.
Example:
>TestPath.exe /A "c:\new cd data\burn" "d:\"

Example with incorrect parameters (there is /S between /A and two paths):
>TestPath.exe /A /S "c:\new cd data\burn" "d:\"

/R

Save results to file (can only be used when /A is used).
Filename of the results file must follow this parameter. It is suggested to use the full path for the filename. If the filename containts spaces, you must enclose it in double quotes.
Example:
>TestPath.exe /A "c:\new cd\burn" "d:\" /R "c:\new cd\results.txt"

/P

Append results to file (is ignored if /R is not specified).
Specify this parameter to append new results to the given file. If this parameter is not specified, a new results file will be created.
Example:
>TestPath.exe /A "c:\new cd\burn" "d:\" /R "c:\new cd\results.txt" /P

/E

Save only errors to results file (is ignored if /R is not specified).
Specify this parameter if you want the results file to be written only if errors are found. If this parameter is not specified, the results file will always be written.
Example:
>TestPath.exe /A "c:\new cd\burn" "d:\" /R "c:\new cd\results.txt" /E

/O

Options
You can use the following options:
/OT - Compare file times and dates
/OB - Compare in both directions
/OF - Fast compare (only file existence and size)

/OS - Read buffer size
/OS0 - 1 KB
/OS1 - 32 KB
/OS2 - 128 KB
/OS3 - 256 KB
/OS4 - 512 KB (default value)
/OS5 - 1 MB
/OS6 - 5 MB
/OS7 - 10 MB
/OP - Priority
/OP0 - Lowest
/OP1 - Low
/OP2 - Normal (default value)
/OP3 - High
/OP4 - Highest

Example:
>TestPath.exe /OT /OB /OS2 /OP1

When using automatic comparing mode TestPath will return following errorlevel numbers:
0 No errors found
1 Errors found (files are different, not found, etc)
2 Comparing stopped by user
3 Bad parameters
9 Other critical error